package com.xianggu.designMode.chainMethod.demo03;

public class Order {
    private String orderId;      // 订单ID
    private String userId;       // 用户ID
    private int itemCount;       // 商品数量
    private double totalAmount;  // 订单总金额
    private boolean isPaid;      // 支付状态
    private String shippingAddress; // 收货地址

    // 构造函数、Getter/Setter省略


    public Order(String orderId, String userId, int itemCount, double totalAmount, boolean isPaid, String shippingAddress) {
        this.orderId = orderId;
        this.userId = userId;
        this.itemCount = itemCount;
        this.totalAmount = totalAmount;
        this.isPaid = isPaid;
        this.shippingAddress = shippingAddress;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getItemCount() {
        return itemCount;
    }

    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public boolean isPaid() {
        return isPaid;
    }

    public void setPaid(boolean paid) {
        isPaid = paid;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public Order() {
    }
}